package com.ps.dao.setting;

import java.util.List;
import java.util.Set;
import org.hibernate.LockMode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;



import com.ps.dao.BaseDaoSupport;
import com.ps.pojo.setting.FunctionModule;

/**
 * A data access object (DAO) providing persistence and search support for
 * FunctionModule entities. Transaction control of the save(), update() and
 * delete() operations can directly support Spring container-managed
 * transactions or they can be augmented to handle user-managed Spring
 * transactions. Each of these methods provides additional information for how
 * to configure it for the desired type of transaction control.
 * 
 * @see com.ps.pojo.setting.FunctionModule
 * @author MyEclipse Persistence Tools
 */

public class FunctionModuleDAO extends BaseDaoSupport<FunctionModule> {
	private static final Logger log = LoggerFactory
			.getLogger(FunctionModuleDAO.class);
	// property constants
	public static final String NAME = "name";
	public static final String DESCRIBE = "describe";

	protected void initDao() {

	}


	public static FunctionModuleDAO getFromApplicationContext(
			ApplicationContext ctx) {
		return (FunctionModuleDAO) ctx.getBean("FunctionModuleDAO");
	}
	
	
}